
export type Data_DisplayObject = {
    scripts?: any[]
    id?: string,
    children?: Data_DisplayObject[]
}

export const uiPrefabData: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        { scriptName: "SpriteRenderer", imageName: "assets/font.png" }
    ],
}

export const itemPrefab: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer"
        },
    ]
}

/*export const rootData: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 }
    ],
    children: [
        {
            id: "tilemap",
            scripts: [
                { scriptName: "Transform", x: 0, y: 100, rotation: 0 },
                {
                    scriptName: "TileMapRenderer", tileData: [
                        [0, 0, 0, 0, 0, 0, 0, 0],
                        [0, 0, 0, 1, 1, 1, 1, 0],
                        [0, 0, 0, 1, 0, 0, 1, 1],
                        [1, 0, 1, 1, 0, 0, 0, 1],
                        [0, 0, 0, 1, 0, 1, 0, 1],
                        [0, 1, 1, 1, 0, 1, 0, 1],
                        [0, 0, 0, 1, 0, 1, 0, 1],
                        [1, 0, 0, 0, 0, 0, 0, 1],
                    ]
                }
            ],
            children:[
                {
                    id: "itemLayer",
                    scripts: [
                        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                        {
                            scriptName: "ItemLayerBehaviour",
                            itemData: [
                                { x: 2, y: 0, cId: 1,uId:1},
                                { x: 4, y: 0, cId: 2,uId:2},
                                { x: 5, y: 2, cId: 1,uId:1},
                                { x: 3, y: 7, cId: 2,uId:2}
                            ]
                        }
                    ],
                    children: [
        
                    ]
                },
                {
                    scripts: [
                        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                        {
                            scriptName: "SpriteRenderer", imageName: "assets/charactorMini-64.png"
                        },
                        {
                            scriptName: "MainRoleBehaviour"
                        },
                        {
                            scriptName: "WalkableBehaviour"
                        }
                    ]
                },
                {
                    scripts: [
                        { scriptName: "Transform", x: 256, y: 192, rotation: 0 },
                        {
                            scriptName: "SpriteRenderer", imageName: "assets/NPCMini-64.png"
                        },
                        {
                            scriptName: "WalkableBehaviour"
                        },
                        {
                            scriptName: "NpcBehaviour",
                            patrol: [{ x: 4, y: 3 }, { x: 6, y: 3 }]
                        }
                    ]
                },

            ]
        },
        
        
        {
            id: "UIRoot",
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 }
            ],
            children:[
                {
                    scripts:[
                        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                        { scriptName: "TextRenderer", text: "helloworld" },
                        { scriptName: "TopUIBehaviour" }
                    ]
                }
            ]
        }
    ]
}


export const uiPrefabData: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 323, rotation: 0 },
        { scriptName: "SpriteRenderer", imageName: "assets/2.png" }
    ],
}

export const itemPrefab: Data_DisplayObject = {
    scripts:[
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        {
            scriptName:"SpriteRenderer"
        }
    ]
}*/